//
//  TravelApp.swift
//  Travel
//
//  Created by huangmingtang on 2025/8/18.
//

import SwiftUI

@main
struct TravelApp: App {
    @StateObject private var appEnvironment = AppEnvironment()
    var body: some Scene {
        WindowGroup {
            RootView()
                .environmentObject(appEnvironment)
                .onAppear {
                    let cfg = appEnvironment.config
                    appEnvironment.logger.log(.info, "[Config] kind=\(cfg.kind) baseURL=\(cfg.baseURL.absoluteString)")
                }
        }
    }
}
